/*
  作者: 劳兆城
  描述: 创建 Style 的方法
*/

import StyleStyle from 'ol/style/style'
import StyleStroke from 'ol/style/stroke'
import StyleText from 'ol/style/text'
import StyleFill from 'ol/style/fill'
import StyleIcon from 'ol/style/icon'
import StyleCircle from 'ol/style/circle'

// 创建 ol.style.Style
export const createStyle = (options) => new StyleStyle(options)

// 创建 ol.style.Stroke
export const createStroke = (options) => new StyleStroke(options)

// 创建 ol.style.Fill
export const createFill = (options) => new StyleFill(options)

// 创建 ol.style.Text
export const createText = (options) => new StyleText(options)

// 创建 ol.style.Icon
export const createIcon = (options) => new StyleIcon(options)

// 创建 ol.style.circle
export const createCircle = (options) => new StyleCircle(options)
